package com.luoran.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.luoran.car.domain.SysCarCoupon;
import com.luoran.car.service.SysCarCouponService;
import com.luoran.car.mapper.SysCarCouponMapper;
import org.checkerframework.checker.units.qual.C;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author lenovo
* @description 针对表【sys_car_coupon(优惠券表)】的数据库操作Service实现
* @createDate 2024-09-20 16:18:29
*/
@Service
public class SysCarCouponServiceImpl extends ServiceImpl<SysCarCouponMapper, SysCarCoupon>
    implements SysCarCouponService{

    @Override
    public boolean addConPon(SysCarCoupon coupon) {
        boolean b = baseMapper.addCopon(coupon);
        return b;
    }

    @Override
    public List<SysCarCoupon> getCouponList(SysCarCoupon coupon) {
        return baseMapper.getCouponList(coupon);
    }

    @Override
    public boolean deleteCouponById(Integer id) {
        int i = baseMapper.deleteById(id);
        if (i>0){
            return true;
        }
        return false;
    }

}




